package com.usian.controller;

import com.usian.result.Result;
import com.usian.service.AdSsqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/adSsq")
@CrossOrigin
public class AdSsqController {

    @Autowired
    private AdSsqService adSsqService;

    @GetMapping("/findByParentId/{id}")
    public Result findByParentId(@PathVariable("id") Integer id){
        return adSsqService.findByParentId(id);
    }

}
